import { createRouter, createWebHashHistory } from "vue-router";

//引入登陆组件页面
import Login from "/src/Viwes/Login/Login.vue";
//主页
import Adv from "/src/Viwes/Adv/Adv.vue";
import AdminList from "/src/Viwes/Adv/child/AdminList.vue";
import AdvList from "/src/Viwes/Adv/child/AdvList.vue";
const routes = [
  {
    path: "/",
    component: Login,
  },
  {
    name: "Login",
    path: "/Login",
    component: Login,
  },
  {
    path: "/Adv",
    component: Adv,
    children: [
      //默认显示路径
      { path: "/Adv", component: AdminList },
      { path: "/Adv/AdminList", component: AdminList },
      { path: "/Adv/AdvList", component: AdvList },
    ],
  },
];

export default createRouter({
  history: createWebHashHistory(),
  routes,
});
